const seq = require('../../seq')
const {INTEGER, DECIMAL, TEXT} = require('../../types')

const Lease = seq.define('lease', {
  content: {
    type: TEXT,
    allowNull: false,
    comment: '租约详细内容'
  },
  askId: {
    type: INTEGER,
    allowNull: false,
    comment: '请求id'
  },
  status: {
    type: DECIMAL,
    allowNull: '',
    comment: '1-暂存 2-等待租客同意 3-租客不同意 4-住客毁约 5-房东毁约 6-租约生效 7-租约过期'
  }
})

module.exports = Lease
